libxl: ocaml: use 'for_app_registration' in osevent callbacks
authorRob Hoes <rob.hoes@citrix.com>
Fri, 10 Jan 2014 13:52:04 +0000 (13:52 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 10 Jan 2014 16:54:45 +0000 (16:54 +0000)
commit8aba7e1ce9e26cdf9d2b002ed87b4bd75fce4af3
tree1a8f85a53ef702f8858a9ac60f06aa285de24840
parent0896bd8bea84526b00e00d2d076f4f953a3d73cb
libxl: ocaml: use 'for_app_registration' in osevent callbacks

This allows the application to pass a token to libxl in the fd/timeout
registration callbacks, which it receives back in modification or
deregistration callbacks.

It turns out that this is essential for timeout handling, in order to
identify which timeout to change on a modify event.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Acked-by: David Scott <dave.scott@eu.citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/ocaml/libs/xl/xenlight.ml.in
tools/ocaml/libs/xl/xenlight.mli.in
tools/ocaml/libs/xl/xenlight_stubs.c